import type { App } from 'vue'
export default function setupGlobDirectives(app: App) {
  const directives = import.meta.glob('./**/*.ts', { eager: true, import: 'default' })
  for (const [key, value] of Object.entries(directives)) {
    const name = key.split('/').pop()?.split('.')?.[0]
    name && app.directive(name, value as any)
  }
}
